<template>
  <view>
    <!-- v-if="!token" -->
    <my-login v-if="!token"></my-login> 
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import { mapState } from 'vuex'
  // 导入封装号的mixins模块
  import MixinsBadge from '@/mixins/tabbar-badge.js'
  export default {
    // 将导入进来的Mixins模块混入当前页面使用
    mixins: [MixinsBadge],
    computed: {
      ...mapState('m_user', ['token'])
    },
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="scss">

</style>
